<div>
<!-- 已有评论列表 -->
{foreach $data as $val}
<dl class="comment_list" comment_id="3363366645520345">
	<dt>
  		<a href="weibo/{$val.user.id}.html"><img width="30" height="30" ucardconf="type=1" usercard="id=2298220505" src="{$val.user.profile_image_url}" alt="maqingrong"></a>
  	</dt>
  	<dd>
		<a ucardconf="type=1" href="weibo/{$val.user.id}.html">{$val.user.name}</a>{$val.text} (<span class="realTime">{strtotime($val.created_at)}</span>)
  		<p class="info W_textb">
  			<span class="W_linkb">
  	  			<em class="hover"><a onclick="javascript:window.open('/reportspam?rid=3363366645520345&amp;type=2&amp;url=http%3A%2F%2Fweibo.com%2Faj%2Fcomment%2Fsmall', 'newwindow', 'height=700, width=550, toolbar =yes, menubar=no, scrollbars=no, resizable=yes, location=no, status=no');" href="javascript:void(0);">举报</a><i class="W_vline">|</i></em>
  	  			<a action-data="{$id}" action-type="reply" onclick="return false" href="####">回复</a>
  			</span>
  		</p>
	</dd>
	<dd class="clear"></dd>
</dl>
{/foreach}

  <div class="clearfix"></div>
</div>
<script type="text/javascript" charset="utf-8">
  $('span.realTime').each(function(){
    $(this).replaceWith(realTime.outPut($(this).html()));
  });
  

  
  $('a[action-type="reply"]').click(function(){
    var id = $(this).attr('action-data');
    var textarea = $(this).parents('div.repeat').find('textarea');
    var user_name = $(this).parents('.comment_list').find('a[ucardconf="type=1"]').html();
    var t_val = textarea.val().replace(/回复\@.*\:/, '');
    textarea.val('回复@'+user_name+':'+t_val).focus();
    
    //$(this).attr('ction-data').val() = "@" + $(this).('type=1').html + ":" + $(this).attr('action-data').val();
  });
  
  $('.faces').click(function(){
      alert('try');
  });
</script>